local function fn()
    local inst = CreateEntity()

    inst.entity:AddTransform()
    inst.entity:AddLight()
    inst.entity:AddSoundEmitter()
    inst.entity:AddNetwork()

    inst:AddTag("FX")

    inst.Light:SetFalloff(.8)
    inst.Light:SetIntensity(.6)
    inst.Light:SetRadius(1)
    inst.Light:SetColour(200 / 255, 100 / 255, 170 / 255)
    inst.Light:Enable(true)

    require("crispynuts_candyfn").common_postinit(inst)

    inst.entity:SetPristine()

    if not TheWorld.ismastersim then
        return inst
    end

    require("crispynuts_candyfn").master_postinit(inst)
    inst.persists = false

    return inst
end

return Prefab("nuts_candylight", fn)
